<template>
  <div>
    <h1 :title="txt">{{msg}}</h1>
    <button @click="fun">按钮</button>
    <ul>
      <li v-for="(fruit,index) in arr" :key="index">{{fruit}}</li>=
    </ul>
  </div>
</template>

<script>
  export default{
    data(){
      return {
        msg:"hello vue",
        txt:"hello world",
        arr:["香蕉","苹果","鸭梨"]
      }
    },
    methods:{
      fun(){
        alert("123456")
      }
    }
  }
</script>

<style>

</style>
